package com.example.authority.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;

import lombok.experimental.Accessors;


/**
 * @program: authority-hm-0.0.1
 * @ClassName:Banner
 * @description: 轮播列表 实体类
 * @author:dyy
 * @Version 3.0
 **/

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_banner")
@Schema(title = "Banner对象", description = "轮播列表")
public class Banner implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "序列号")
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("序列号")
    private Long id;

    @Schema(title = "轮播名称")
    @TableField("name")
    @ExcelProperty("轮播名称")
    private String name;

    @Schema(title = "轮播图片")
    @TableField("img")
    @ExcelProperty("轮播图片")
    private String img;

    @Schema(title = "背景颜色")
    @TableField("color")
    @ExcelProperty("背景颜色")
    private String color;


}
